﻿@model OdeToFood.Models.ConFecha

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>


<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>


<link href="@Url.Content("~/Content/AjaxControlToolkit/3.0.20820.16598/3.0.20820.0/AjaxControlToolkit.Calendar.Calendar.css")"
    rel="stylesheet" type="text/css" />
<script src="~/Scripts/MicrosoftAjax.debug.js" type="text/javascript"></script> 
    <script src="@Url.Content("~/Content/AjaxControlToolkit/3.0.20820.16598/3.0.20820.0/AjaxControlToolkit.ExtenderBase.BaseScripts.js")"
        type="text/javascript"></script>
    <script src="@Url.Content("~/Content/AjaxControlToolkit/3.0.20820.16598/3.0.20820.0/AjaxControlToolkit.Common.Common.js")"
        type="text/javascript"></script>
    <script src="@Url.Content("~/Content/AjaxControlToolkit/3.0.20820.16598/3.0.20820.0/AjaxControlToolkit.Common.DateTime.js")"
        type="text/javascript"></script>
    <script src="@Url.Content("~/Content/AjaxControlToolkit/3.0.20820.16598/3.0.20820.0/AjaxControlToolkit.Animation.Animations.js")"
        type="text/javascript"></script>
    <script src="@Url.Content("~/Content/AjaxControlToolkit/3.0.20820.16598/3.0.20820.0/AjaxControlToolkit.PopupExtender.PopupBehavior.js")"
        type="text/javascript"></script>
    <script src="@Url.Content("~/Content/AjaxControlToolkit/3.0.20820.16598/3.0.20820.0/AjaxControlToolkit.Animation.AnimationBehavior.js")"
        type="text/javascript"></script>
    <script src="@Url.Content("~/Content/AjaxControlToolkit/3.0.20820.16598/3.0.20820.0/AjaxControlToolkit.Common.Threading.js")"
        type="text/javascript"></script>
    <script src="@Url.Content("~/Content/AjaxControlToolkit/3.0.20820.16598/3.0.20820.0/AjaxControlToolkit.Compat.Timer.Timer.js")"
        type="text/javascript"></script>
    <script src="@Url.Content("~/Content/AjaxControlToolkit/3.0.20820.16598/3.0.20820.0/AjaxControlToolkit.Calendar.CalendarBehavior.js")"
        type="text/javascript"></script>

    <script type="text/javascript">
        Sys.Application.add_init(appInit);

        function appInit() {
            $create(AjaxControlToolkit.CalendarBehavior, null, null, null, $get("birthDate"));
        } 
    </script>



@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>ConFecha</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.nombre)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.nombre)
            @Html.ValidationMessageFor(model => model.nombre)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.fecha)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.fecha)
            @Html.ValidationMessageFor(model => model.fecha)
        </div>
        
        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}



        <div>
            <form method="post"> 
                <label for="birthDate">Birth Date:</label>
                <br />
                <input id="birthDate" name="birthDate" /> 
                <br /><br />
                <input type="submit" value="Add" />
            </form>
        </div>


<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@*
@Html.Partial("Date",Model.fecha) *@


 

 <script src="@Url.Content("http://code.jquery.com/jquery-1.9.1.js")" type="text/javascript"></script>
 <script src="@Url.Content("http://code.jquery.com/ui/1.10.2/jquery-ui.js")" type="text/javascript"></script>
  
  

  <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css" /
  <link rel="stylesheet" href="/resources/demos/style.css" />

  <script type="text/javascript">
      $(function () {
          $("#datepicker").datepicker();
      });
  </script>


 
<p>Date: <input type="text" id="datepicker" /></p>
 
 


